package com.admin.mds.system.service;

import java.util.List;

import com.admin.mds.system.model.entity.SysMenuEntity;
import com.admin.mds.system.model.vo.TreeSelect;


/**
 * 菜单权限表Service
 * @author monxz
 * @version 2021-01-29
 */


public interface SysMenuService {

	SysMenuEntity findSysMenuById(SysMenuEntity sysMenuEntity) throws Exception;

	List<SysMenuEntity> findSysMenuList(SysMenuEntity sysMenuEntity,boolean  needAll) throws Exception;

	Integer addSysMenu(SysMenuEntity sysMenuEntity) throws Exception;

	Integer modifySysMenu(SysMenuEntity sysMenuEntity) throws Exception;

	Integer delete(String menuId) throws Exception;

	Integer checkUnion(SysMenuEntity sysMenuEntity) throws Exception;

	/**
	 * 构建菜单树
	 * 
	 * @param userId
	 * @return
	 */
	List<SysMenuEntity> buildMenuTree(String userId);
	
	/**
	 * 构建树
	 * @param menuList
	 * @return
	 */
	List<TreeSelect> buildMenuTreeSelect(List<SysMenuEntity> menuList);

}